package zhaojin;

/**
 * Created by asus on 2017/12/25.
 */
public class Subclass extends Test {
    static {
        System.out.println(n);
        System.out.println("static sub");
        n=3;
        System.out.println(n);
    }
    Subclass(){
        System.out.println("subclass");
    }

    public static void main(String[] args) {
        //new Subclass();
        System.out.println("---");
        System.out.println(Subclass.n);
        System.out.println(Test.n);
    }
}
